*******************************************************
* Lyle 05 Jan 11: 						              *
*	-this program serves as a base shell for all	  *
*	 stata do files					                  *
*******************************************************


********************************
* Standard Stata Configuration *
********************************
clear all
set mem 999m
capture log close
set logtype text
cap cd "C:\Users\ejm5\Google Drive\2016_Research\Unemployment_MILEX"
cap cd "C:\Users\Jordan.Becker\Desktop\GD\2016_Research\Unemployment_MILEX"
cap cd "\\usnatonetapp01.eur.state.sbu\profiles\beckerjm\Desktop\2016_Research\Unemployment_MILEX"
log using "log\correlates_figure7.log", replace


*********************
* Prepare Variables *
*********************
use "dta\2016_02_09_uem", clear
sort ccode year
xtset ccode year


********************
* Analyze the Data *
********************
set more off
sort ccode year
xtset ccode year


*Deployability and Sustainability Trends*
#delimit;
preserve;
keep if year>=2006 & year<=2014 & eda_deployability!=. & eda_sustainability!=.;
collapse eda_deployability eda_sustainability milpersonnel_thousands, by(year);
twoway  (tsline eda_deployability, lwidth(thin)lcolor(navy))
		(tsline eda_sustainability, lwidth(thin)lcolor(green))
		(tsline milpersonnel_thousands, lwidth(thin)lcolor(red)),
		xtitle("") xlab(2006(2)2014, labsize(tiny) angle(45)) ylab(0(10)100, labsize(small))
		ytitle("EDA Deployability and Sustainability Ratios", size(small) margin(medium))
		ztitle("Force Size (000s)", size(small) margin(medium))
		legend(rows(1) size(small) label(1 Deployability)  label (2 Sustainability) label(3 Force Size in 000s))
		title("Deployability, Sustainability & Force Size (EDA Mean)", size(medlarge));
graph save output\tsline_deploy_sustain, replace;
restore;


